package com.jgk.gwt.recipes.contactsuibinder.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * based on http://code.google.com/webtoolkit/articles/mvp-architecture-2.html
 * from Tutorial-Contacts2.zip
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class JgkContactsWithUiBinder implements EntryPoint {
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {

		ContactsServiceAsync rpcService = GWT.create(ContactsService.class);    
	    SimpleEventBus eventBus = new SimpleEventBus();
	    AppController appViewer = new AppController(rpcService, eventBus);
	    appViewer.go(RootPanel.get());
	    
	}
}
